function setLanguage(lang) {
	$("#LANGUAGE").val(lang);
	$("#LANGUAGE_FORM").submit();
}

function showProducts(gid, lang) {

	$("[id^='LEFT_MENU_']").each( 
			function() { $(this).removeClass("active"); } 
	);

	$("#LEFT_MENU_"+gid).addClass("active");

	
	$.ajax({
		  type: "POST",
		  url: "offer/productResp.php",
		  data: "gid="+gid+"&lang="+lang,	
		  async: false,
		  cache: false,
		  success: function(html){
		    $("#PRODUCTS_CONTENT").html(html);
		  }
		});



}

function showDetails(prodFile, gid, lang) {

	$.ajax({
	  type: "POST",
	  url: "offer/detailsResp.php",
	  data: "prodFile="+prodFile+"&gid="+gid+"&lang="+lang,	
	  async: false,
	  cache: false,
	  success: function(html){
	    $("#PRODUCTS_CONTENT").html(html);
	  }
	});

}


function showContent( id, path ) {
	alert(path);
	$("tr[id^='LEFT_MENU_']").each( function() { $(this).removeClass("active"); } );

	$("#LEFT_MENU_"+id).addClass("active");
	$(document).ready(function(){
			$("#MAIN_CONTENT").load(path);
	});

}
